#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "font5x7.h"
#include "lcd.h"


void app_main(void) {
    init_spi_bus();
    spi_device_handle_t spi = init_spi_device();
    init_lcd(spi);
    
    printf("清屏开始\n");
    clear_screen(spi, 0xffff);
    //vTaskDelay(pdMS_TO_TICKS(5000));
    printf("清屏完成\n");
    draw_str(spi, 30, 30, "love tangerine", 0x0000, 0xffff);
}